package com.starbaba.weixin.service;

import com.base.common.exception.AppException;
import com.google.gson.JsonObject;
import com.starbaba.weixin.model.WeixinMenuDbVO;
import com.starbaba.weixin.model.WeixinMenuVO;

/**
 * @author Yukinomiu
 * @version 1.0
 */
public interface WeixinMenuService {

    String toString(WeixinMenuVO vo);

    WeixinMenuVO convert(JsonObject json);

    JsonObject convert(WeixinMenuVO vo);

    Long save(WeixinMenuVO vo, String remark, Integer weixinType) throws AppException;

    WeixinMenuDbVO getMenuByRootId(Long rootId) throws AppException;

    WeixinMenuDbVO getLastMenuConfig(Integer weixinType) throws AppException;
}
